<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
  <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/hotel/style/style.css"></link>
  <style type="text/css">
    
    #content div{
  	  margin: 10px 0px;
  	}
  	
  	div.submit{
  	  text-align:center;
  	}
  	
  	label{
  	  width:80px;
  	  display:block;
  	  float:left;
  	}
  	
  	fieldset{
      width:300px;
      margin:auto;
      margin-top:20px;
      display:block;
  	}
  	
  	fieldset select{
  	  width:120px;
  	}
  	
  	fieldset input{
  	  width:120px;
  	}  
  	
  </style>
  <title>登录</title>
</head>
<body>
<div id="container">
  <div id="header">
    <ul>
      <li><a href="#">帮助</a></li>
    </ul>
  </div>
  <div id="menu">
    <ul>
      <li><a href="<%=request.getContextPath()%>/hotel/index.jsp">首页</a></li>
      <li><a href="<%=request.getContextPath()%>/list.book">图书列表</a></li>
      <li><a href="<%=request.getContextPath()%>/list.subscription">会员中心</a></li>
    </ul>
  </div>
  <div id="content">
  <form action="<%=request.getContextPath()%>/login.member" method="post">
    <fieldset>
      <legend>登录信息</legend>
      <div>
        <label for="username">用户名</label>
        <input type="text" name="username" id="username" />
        <%
          String msg=(String)request.getAttribute("msg");
          if(msg!=null){
        %>
        <br><span style="color: red;"><%=msg%></span>
        <%
          }
        %>
      </div>
      <div>
        <label for="password">密码</label>
        <input type="text" name="password" id="password" />
      </div>
    </fieldset>
    <div class="submit">
      <input type="submit" value="登录" />
      <p>如果您还没注册，请<a href="<%=request.getContextPath()%>/hotel/register-1.jsp">点击这里注册</a>成为会员。</p>
    </div>
  </form>
  </div>
  <hr />
  <div id="footer">
  </div>
</div>
</body>
</html>